package 面向对象中级.课堂练习.Exercise06;

public class Designer extends Employee{
    private double bonus;

    public Designer(double bonus) {
        this.bonus = bonus;
    }

    public Designer(int id, String name, int age, String tel, double bonus) {
        super(id, name, age, tel);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public String getInfo() {
        return super.getInfo()+ "奖金为" + bonus;
    }
}
